gtk4.git
7 years agowidget: Mark compute functions as G_GNUC_WARN_UNUSED_RESULT
Benjamin Otte [Wed, 20 Feb 2019 04:00:13 +0000 (05:00 +0100)]
widget: Mark compute functions as G_GNUC_WARN_UNUSED_RESULT

Lots of code does not error-check these functions, and when we add CSS
transforms, they will start failing. And we want people to check that.

7 years agogtk: Check return value of compute_bounds()
Benjamin Otte [Wed, 20 Feb 2019 03:53:47 +0000 (04:53 +0100)]
gtk: Check return value of compute_bounds()

Half of these calls will completely break if anybody ever uses CSS
transforms with them, but hey...

7 years agowidget: Always set out value
Benjamin Otte [Wed, 20 Feb 2019 03:07:34 +0000 (04:07 +0100)]
widget: Always set out value

Don't leave memory in an unitinialized case when returning FALSE from
gtk_widget_compute_transform().

We both know that people are going to call that function without
checking the return value.

7 years agowidget: Fail if matrix not invertible
Benjamin Otte [Wed, 20 Feb 2019 03:05:37 +0000 (04:05 +0100)]
widget: Fail if matrix not invertible

7 years agowidget: Add optimizations to gtk_widget_compute_transform()
Benjamin Otte [Wed, 20 Feb 2019 03:04:29 +0000 (04:04 +0100)]
widget: Add optimizations to gtk_widget_compute_transform()

Try to catch 2 common cases with as little work as necessary.

7 years agowidget: Clean up gtk_widget_compute_transform()
Benjamin Otte [Wed, 20 Feb 2019 02:46:28 +0000 (03:46 +0100)]
widget: Clean up gtk_widget_compute_transform()

The code was all over the place and being clear here is very useful.

7 years agoFix gtk_widget_compute_transform
Matthias Clasen [Wed, 20 Feb 2019 00:29:56 +0000 (19:29 -0500)]
Fix gtk_widget_compute_transform

We were collecting all the transforms from widget
up to ancestor, and then trying to collect the
ones from target to ancestor, but failing.

7 years agowidget: Remove gtk_widget_get_allocated_size()
Benjamin Otte [Tue, 19 Feb 2019 07:09:57 +0000 (08:09 +0100)]
widget: Remove gtk_widget_get_allocated_size()

Use gtk_widget_get_allocated_width/height in the only user (GtkStack),
even though that isn't 100% correct.

7 years agoAdd test for widget transforms
Timm Bäder [Sat, 11 Aug 2018 20:19:13 +0000 (22:19 +0200)]
Add test for widget transforms

7 years agowidget: Add gtk_widget_compute_point()
Benjamin Otte [Tue, 19 Feb 2019 18:15:16 +0000 (19:15 +0100)]
widget: Add gtk_widget_compute_point()

It's the replacement for gtk_widget_translate_coordinates()

7 years agoRemove nonexisting function from header
Benjamin Otte [Tue, 19 Feb 2019 17:02:46 +0000 (18:02 +0100)]
Remove nonexisting function from header

7 years agowidget: Compute child point directly when picking
Timm Bäder [Tue, 19 Feb 2019 07:51:51 +0000 (08:51 +0100)]
widget: Compute child point directly when picking

7 years agowidget: Remove unused function
Timm Bäder [Tue, 19 Feb 2019 07:33:24 +0000 (08:33 +0100)]
widget: Remove unused function

7 years agowidget: Avoid some type checks in pick() and contains()
Timm Bäder [Tue, 19 Feb 2019 07:25:49 +0000 (08:25 +0100)]
widget: Avoid some type checks in pick() and contains()

We've already verified that the given pointer is a proper GtkWidget, so
no need to do it all over again.

7 years agowidget: Add typecheck-less _is_sensitive
Timm Bäder [Tue, 19 Feb 2019 07:24:43 +0000 (08:24 +0100)]
widget: Add typecheck-less _is_sensitive

It adds up to a whopping 3% in gtk_widget_pick

7 years agowidget: Add gtk_widget_compute_transform
Timm Bäder [Sun, 17 Feb 2019 07:47:09 +0000 (08:47 +0100)]
widget: Add gtk_widget_compute_transform

7 years agowidget: Use CSS boxes in gtk_widget_real_contains()
Timm Bäder [Tue, 19 Feb 2019 16:19:23 +0000 (17:19 +0100)]
widget: Use CSS boxes in gtk_widget_real_contains()

7 years agostack sidebar: Fix sorting
Matthias Clasen [Tue, 19 Feb 2019 16:22:33 +0000 (11:22 -0500)]
stack sidebar: Fix sorting

Fix sorting, by not sorting.

7 years agoMerge branch 'portal-session-state-master' into 'master'
Matthias Clasen [Tue, 19 Feb 2019 12:35:14 +0000 (12:35 +0000)]
Merge branch 'portal-session-state-master' into 'master'

Portal session state

See merge request GNOME/gtk!587

7 years agoapplication: Add a query-end signal
Matthias Clasen [Tue, 22 Jan 2019 01:45:15 +0000 (20:45 -0500)]
application: Add a query-end signal

This lets us take just-in-time inhibitors, and makes
the session support a little more real.

7 years agoApplication: Support sandboxed session state changes
Matthias Clasen [Sun, 20 Jan 2019 16:29:04 +0000 (11:29 -0500)]
Application: Support sandboxed session state changes

React to the session-state in StateChanged signals from
the inhibit portal and call QueryEndResponse as appropriate.

7 years agowidget: Remove lefover debug code
Benjamin Otte [Tue, 19 Feb 2019 05:47:35 +0000 (06:47 +0100)]
widget: Remove lefover debug code

According to someone involved with those lines, I suck at reviewing
their patches.

7 years agoMerge branch 'text' into 'master'
Matthias Clasen [Tue, 19 Feb 2019 05:45:44 +0000 (05:45 +0000)]
Merge branch 'text' into 'master'

GtkEntry reshuffling

Closes #1483

See merge request GNOME/gtk!585

7 years agosearch entry: Add a tooltip to th clear icon
Matthias Clasen [Tue, 19 Feb 2019 05:32:35 +0000 (00:32 -0500)]
search entry: Add a tooltip to th clear icon

Similar to what we do for the caps-lock warning in the
password entry.

Closes #1483

7 years agoMention GtkEditable and entries in the migration guide
Matthias Clasen [Tue, 19 Feb 2019 05:10:24 +0000 (00:10 -0500)]
Mention GtkEditable and entries in the migration guide

Not a very exhaustive treatment, but at least it gives
some hints.

7 years agoAdd editable delegate api to docs
Matthias Clasen [Tue, 19 Feb 2019 04:42:06 +0000 (23:42 -0500)]
Add editable delegate api to docs

And add a section that explains how to use these
functions when setting up a GtkEditable delegate.

7 years agoFix testtreesort warnings
Matthias Clasen [Sun, 17 Feb 2019 23:18:20 +0000 (18:18 -0500)]
Fix testtreesort warnings

7 years agoa11y text test: Use a GtkText instead
Matthias Clasen [Sun, 17 Feb 2019 20:52:33 +0000 (15:52 -0500)]
a11y text test: Use a GtkText instead

7 years agoa11y tests: Update expected output
Matthias Clasen [Sun, 17 Feb 2019 20:52:10 +0000 (15:52 -0500)]
a11y tests: Update expected output

GtkText makes an appearance in many places now.

7 years agofocus test: Use a GtkText instead
Matthias Clasen [Sun, 17 Feb 2019 20:51:31 +0000 (15:51 -0500)]
focus test: Use a GtkText instead

Thats where the focus is nowadays.

7 years agodefaultvalue test: Exempt GtkText::buffer
Matthias Clasen [Sun, 17 Feb 2019 20:50:59 +0000 (15:50 -0500)]
defaultvalue test: Exempt GtkText::buffer

It gets created on-demand, so isn't NULL.

7 years agotestsuite: update css node tests
Matthias Clasen [Sun, 17 Feb 2019 20:18:00 +0000 (15:18 -0500)]
testsuite: update css node tests

The entries have changed. Reflect that.

7 years agowidget-factory: Don't set can-focus on entries
Matthias Clasen [Mon, 18 Feb 2019 19:23:14 +0000 (14:23 -0500)]
widget-factory: Don't set can-focus on entries

The focus needs to be on the text inside, now.

7 years agofile chooser: Use editable api on the search entry
Matthias Clasen [Sun, 17 Feb 2019 19:48:44 +0000 (14:48 -0500)]
file chooser: Use editable api on the search entry

7 years agofont chooser: Use editable api on search entry
Matthias Clasen [Sun, 17 Feb 2019 19:48:08 +0000 (14:48 -0500)]
font chooser: Use editable api on search entry

7 years agoapp chooser: Use editable api on search entry
Matthias Clasen [Sun, 17 Feb 2019 19:47:53 +0000 (14:47 -0500)]
app chooser: Use editable api on search entry

7 years agoFix the search bar example
Matthias Clasen [Sun, 17 Feb 2019 21:13:58 +0000 (16:13 -0500)]
Fix the search bar example

More GtkSearchBar entry -> editable fixups.

7 years agogtk-demo: Make the delayed search demo work
Matthias Clasen [Sun, 17 Feb 2019 04:59:39 +0000 (23:59 -0500)]
gtk-demo: Make the delayed search demo work

Make this demo work with the new search entry.

7 years agoinspector: Work with new search entry
Matthias Clasen [Sun, 17 Feb 2019 04:58:54 +0000 (23:58 -0500)]
inspector: Work with new search entry

Don't assume a search entry is an entry, and
use the editable api as far as possible.

7 years agotreeview: make search work
Matthias Clasen [Sun, 17 Feb 2019 04:56:15 +0000 (23:56 -0500)]
treeview: make search work

Make search work with both GtkEntry and GtkSearchEntry,
even if a GtkSearchEntry is not derived from GtkEntry
anymore.

7 years agosearch bar: Work with the new GtkSearchEntry
Matthias Clasen [Sun, 17 Feb 2019 04:58:06 +0000 (23:58 -0500)]
search bar: Work with the new GtkSearchEntry

Don't assume a search entry is an entry, and use
the editable api as far as possible.

7 years agosearch entry: Use a GtkText
Matthias Clasen [Sun, 17 Feb 2019 04:57:18 +0000 (23:57 -0500)]
search entry: Use a GtkText

7 years agoAdd a test for GtkPassworkEntry
Matthias Clasen [Sun, 17 Feb 2019 03:22:43 +0000 (22:22 -0500)]
Add a test for GtkPassworkEntry

7 years agoAdd GtkPasswordEntry
Matthias Clasen [Sun, 17 Feb 2019 03:21:57 +0000 (22:21 -0500)]
Add GtkPasswordEntry

This is a simple editable which hides the entered
text and shows a caps-lock warning.

7 years agoentry completion: Make this work again
Matthias Clasen [Mon, 18 Feb 2019 04:03:27 +0000 (23:03 -0500)]
entry completion: Make this work again

Connect to GtkText signals where necessary.

7 years agotreeview: use a GtkText as search entry
Matthias Clasen [Sat, 16 Feb 2019 17:29:48 +0000 (12:29 -0500)]
treeview: use a GtkText as search entry

7 years agotreeview: Disable some search entry functionality
Matthias Clasen [Sat, 16 Feb 2019 05:53:09 +0000 (00:53 -0500)]
treeview: Disable some search entry functionality

This needs to be rewritten. Until then, keep it limping along.

7 years agosearch entry: temporarily disable some functions
Matthias Clasen [Sat, 16 Feb 2019 05:52:20 +0000 (00:52 -0500)]
search entry: temporarily disable some functions

The search entry needs to be rewritten to use a
text child until then, keep it limping along.

7 years agospin button: Use GtkText
Matthias Clasen [Sat, 16 Feb 2019 02:01:33 +0000 (21:01 -0500)]
spin button: Use GtkText

We already use GtkEditable api throughout. This just
means we create a GtkText instead of a GtkEntry.

7 years agoentry accessible: Make this work with the text widget
Matthias Clasen [Sat, 16 Feb 2019 05:50:12 +0000 (00:50 -0500)]
entry accessible: Make this work with the text widget

7 years agoentry: Delegate to GtkText
Matthias Clasen [Sat, 16 Feb 2019 05:50:40 +0000 (00:50 -0500)]
entry: Delegate to GtkText

Use a GtkText child, and delegate the editable functionality
to it. Also forward all the properties that are provided by
GtkText.

Some of the more internal APIs, such as layout and im context
access and caps-lock warning, are removed here, but we preserve
most of the plain GtkEntry API by forwarding it to the GtkText
child.

7 years agowidget: Fix gtk_widget_size_allocate()
Benjamin Otte [Tue, 19 Feb 2019 04:50:49 +0000 (05:50 +0100)]
widget: Fix gtk_widget_size_allocate()

Compute the matrix for adjusted sizes etc properly.

7 years agorecorder: Print the matrix for transform nodes
Benjamin Otte [Tue, 19 Feb 2019 03:16:00 +0000 (04:16 +0100)]
recorder: Print the matrix for transform nodes

7 years agoAdd a GtkTextAccessible
Matthias Clasen [Sat, 16 Feb 2019 02:30:36 +0000 (21:30 -0500)]
Add a GtkTextAccessible

Add an accessible implementation for GtkText.

7 years agoMake emoji completion work for GtkText
Matthias Clasen [Fri, 15 Feb 2019 20:46:51 +0000 (15:46 -0500)]
Make emoji completion work for GtkText

GtkEntry will stop using it directly in the following commits.

7 years agoAdd a GtkText widget
Matthias Clasen [Thu, 14 Feb 2019 01:16:12 +0000 (20:16 -0500)]
Add a GtkText widget

This is a GtkEntry without any of the extras, such as
icons, completion, progress, caps-lock warning, emoji icon.

7 years agospin button: Implement and use editable interface
Matthias Clasen [Thu, 14 Feb 2019 05:54:07 +0000 (00:54 -0500)]
spin button: Implement and use editable interface

7 years agoentry: Implement new editable iface
Matthias Clasen [Thu, 14 Feb 2019 04:07:36 +0000 (23:07 -0500)]
entry: Implement new editable iface

7 years agoeditable: Add more to interface
Matthias Clasen [Thu, 14 Feb 2019 01:16:33 +0000 (20:16 -0500)]
editable: Add more to interface

Add all the things to the GtkEditable interface that
make sense for most implementations.

7 years agoa11y: Update assistant test output
Matthias Clasen [Sun, 17 Feb 2019 20:36:45 +0000 (15:36 -0500)]
a11y: Update assistant test output

This changed as part of the recent cleanup that removed
some internal boxing.

7 years agoflowbox: Implement get_child_at_pos properly
Timm Bäder [Thu, 14 Feb 2019 06:11:34 +0000 (07:11 +0100)]
flowbox: Implement get_child_at_pos properly

With transforms in the mix, checking if the coordinate is inside the
widget "allocation" makes even less sense. Just use gtk_widget_pick()
and walk up until we find a GtkFlowBoxChild.

7 years agowidget: Push a transform node if we need to
Timm Bäder [Sat, 16 Feb 2019 14:29:05 +0000 (15:29 +0100)]
widget: Push a transform node if we need to

This is the same as the old code since the transformation only contains
teh offset right now, but it will be different later where arbitrary
transformations are possible per widget.

7 years agowidget: Save transform as matrix
Timm Bäder [Sat, 16 Feb 2019 13:40:49 +0000 (14:40 +0100)]
widget: Save transform as matrix

The transform matrix is a translation matrix from the parent's origin to
the widget origin. We will later allow more transformations than just
translations.

7 years agopaned: Implement increased handle area using pick()
Timm Bäder [Wed, 13 Feb 2019 14:37:54 +0000 (15:37 +0100)]
paned: Implement increased handle area using pick()

Otherwise, we do report the widgets below the invisible handle area as
hovered or active.

7 years agoMerge branch 'wip/otte/boxes' into 'master'
Matthias Clasen [Fri, 15 Feb 2019 16:12:26 +0000 (16:12 +0000)]
Merge branch 'wip/otte/boxes' into 'master'

GtkCssBoxes

See merge request GNOME/gtk!584

7 years agoMerge branch 'assistant-cleanup' into 'master'
Matthias Clasen [Fri, 15 Feb 2019 15:54:53 +0000 (15:54 +0000)]
Merge branch 'assistant-cleanup' into 'master'

Assistant cleanup

See merge request GNOME/gtk!581

7 years agoDrop GtkAssistantPage::has-padding
Matthias Clasen [Thu, 14 Feb 2019 19:46:01 +0000 (14:46 -0500)]
Drop GtkAssistantPage::has-padding

This is causing us some internal complications, and
it is very easy to just add padding to the pages
yourself.

7 years agoassistant: Use a stack
Matthias Clasen [Thu, 14 Feb 2019 19:07:46 +0000 (14:07 -0500)]
assistant: Use a stack

We don't use any non-stack features of the notebook here.

7 years agoassistant: Add docs
Matthias Clasen [Thu, 14 Feb 2019 19:29:54 +0000 (14:29 -0500)]
assistant: Add docs

Without this, introspection complains about a missing
transfer annotation.

7 years agosingleselection: Make tests build without warnings
Matthias Clasen [Fri, 15 Feb 2019 15:20:48 +0000 (10:20 -0500)]
singleselection: Make tests build without warnings

7 years agocss: Pass boxes to the render functions
Benjamin Otte [Fri, 15 Feb 2019 05:15:50 +0000 (06:15 +0100)]
css: Pass boxes to the render functions

Instead of style + rect_of_one_box, pass the new GtkCssBoxes object.
This has the nice side effect that when drawing background + border +
outline, we only compute all the boxes we need once.

7 years agocss: Mark some hot functions as G_GNUC_PURE
Benjamin Otte [Fri, 15 Feb 2019 03:06:22 +0000 (04:06 +0100)]
css: Mark some hot functions as G_GNUC_PURE

By doing that, gcc will generate code that avoids calling these
functions when not needed.

7 years agowidget: Make width, height and transform be widget-relative
Benjamin Otte [Fri, 15 Feb 2019 02:49:05 +0000 (03:49 +0100)]
widget: Make width, height and transform be widget-relative

Previously, those numbers stored the values relative to the margin box
of the widget. Now they store values relative to the content box,
thereby getting rid of the last remains of weird coordinate systems.

7 years agocssboxes: Introduce
Benjamin Otte [Fri, 15 Feb 2019 01:57:46 +0000 (02:57 +0100)]
cssboxes: Introduce

Split out the code for computing CSS boxes from given variables from the
background render code. This way, it can be shared between different
codebases.

Also, make that code completely be contained of static inline functions.
That ensures that it can be 100% inlined in cases where only parts of
the rectangle are needed (like in gtk_widget_get_width() in the future).

This will require some more patches to actually work, but those will
follow.

7 years agowidget: Store the render node in the widget's coordinate system
Benjamin Otte [Sun, 10 Feb 2019 05:26:41 +0000 (06:26 +0100)]
widget: Store the render node in the widget's coordinate system

Also require gtk_widget_snapshot() to be in the widget's coordinate
system.

7 years agoroot: Move the renderer to the root
Benjamin Otte [Sun, 10 Feb 2019 00:06:39 +0000 (01:06 +0100)]
root: Move the renderer to the root

7 years agoroot: Add gtk_root_get_surface_transform()
Benjamin Otte [Sat, 9 Feb 2019 21:15:32 +0000 (22:15 +0100)]
root: Add gtk_root_get_surface_transform()

The function isn't used yet, so this is just infrastructure.

7 years agoroot: Add GtkRoot:get_display vfunc
Benjamin Otte [Sun, 29 Jul 2018 02:11:14 +0000 (04:11 +0200)]
root: Add GtkRoot:get_display vfunc

And use it.

7 years agowidget: Add a GtkWidget::root property and gtk_widget_get_root()
Benjamin Otte [Sun, 29 Jul 2018 01:40:52 +0000 (03:40 +0200)]
widget: Add a GtkWidget::root property and gtk_widget_get_root()

The property is just for API completeness, the getter is meant to
replace toplevel usage.

7 years agowidget: Add GtkWidgetClass:root and :unroot functions
Benjamin Otte [Sun, 29 Jul 2018 01:31:36 +0000 (03:31 +0200)]
widget: Add GtkWidgetClass:root and :unroot functions

They get added whenever a widget gets added into a hierarchy with a root
widget.

7 years agowidget: Remove toplevel flag
Benjamin Otte [Fri, 6 Apr 2018 18:30:34 +0000 (20:30 +0200)]
widget: Remove toplevel flag

Instead, rely on GTK_IS_ROOT().

Also implement GtkRoot on GtkWindow and GtkInvisible, the two widgets
that used to set the toplevel flag before.

7 years agogtk: Add the GtkRoot interface
Benjamin Otte [Fri, 6 Apr 2018 18:21:06 +0000 (20:21 +0200)]
gtk: Add the GtkRoot interface

So far, this doesn't do anything.

7 years agowidget: Move compuatation of what changed further up
Benjamin Otte [Sat, 9 Feb 2019 04:28:44 +0000 (05:28 +0100)]
widget: Move compuatation of what changed further up

This way, we can compare with literally the previous allocation and the
size will not be influenced by an adjusted allocation.

But more importantly, we can now use the transform/width/height values
for other stuff.

7 years agowidget: Split up priv->allocation
Benjamin Otte [Sat, 9 Feb 2019 02:03:59 +0000 (03:03 +0100)]
widget: Split up priv->allocation

It's not priv->transform (to be turned into a graphene matrix),
priv->width and priv->height.

The numbers are still the same.
The only difference is that unallocated widgets will now have x/y set to
0, not to -1.

7 years agocontainer: Drop gtk_container_check_resize()
Benjamin Otte [Sat, 9 Feb 2019 00:44:10 +0000 (01:44 +0100)]
container: Drop gtk_container_check_resize()

Instead, hardcode GtkWindow for now.
The code for non-windows was entirely broken.

7 years agowindow: Properly detect if size allocation is needed
Benjamin Otte [Tue, 12 Feb 2019 01:20:36 +0000 (02:20 +0100)]
window: Properly detect if size allocation is needed

Instead of looking at the allocation, just look at the alloc_needed
widget flag that tracks if an allocation is needed.

7 years agosimpleselection: Improve items-changed
Benjamin Otte [Mon, 11 Feb 2019 05:01:19 +0000 (06:01 +0100)]
simpleselection: Improve items-changed

Make items-changed never emit 2 signals, instead, always emit only one,
potentially by extending the range reported in items-changed.

And be a lot more exhaustive about autoselect tests.

7 years agoselectionmodel: Change prototype of query_range()
Benjamin Otte [Mon, 11 Feb 2019 03:57:46 +0000 (04:57 +0100)]
selectionmodel: Change prototype of query_range()

1. Do not make position an inout variable
The function is meant to return a range for a given position, not modify
a position. So it makes no conceptual sense to use an inout variable.
2. Pass the selected state as an out variable
Using a boolean return value - in particular in an interface full of
boolean return values - makes the return value intuitively feel like a
success/failure return. Using an out variable clarifies the usage.
3. Allow passing every position value
Define what happens when position >= list.n_items
4. Clarify the docs about how this function should behave
In particular, mention the case from point (3)
5. Add more tests
Again, (3) needs testing.

7 years agooverlay: Remove hack for scrolled windows
Benjamin Otte [Sat, 9 Feb 2019 03:01:45 +0000 (04:01 +0100)]
overlay: Remove hack for scrolled windows

It's not needed now that we don't use scrollbars or overlays inside
scrolled windows anymore.

7 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 14 Feb 2019 17:31:28 +0000 (18:31 +0100)]
Updated Slovenian translation

7 years agostack: Fix a crash
Matthias Clasen [Thu, 14 Feb 2019 17:24:22 +0000 (12:24 -0500)]
stack: Fix a crash

We need to remove the weak pointer, as the stack switcher can
keep the list model alive beyond the stack. This was observed
to cause crashes:

==16870== Invalid write of size 8
==16870==    at 0x5168A4E: g_nullify_pointer (gutils.c:2284)
==16870==    by 0x522C500: weak_refs_notify (gobject.c:2791)
==16870==    by 0x50FE7BC: g_data_set_internal (gdataset.c:407)
==16870==    by 0x50FECA7: g_datalist_id_set_data_full (gdataset.c:670)
==16870==    by 0x5227EB4: g_object_real_dispose (gobject.c:1056)
==16870==    by 0x522D295: g_object_unref (gobject.c:3309)
==16870==    by 0x4AF849F: unset_stack (gtkstackswitcher.c:428)
==16870==    by 0x4AF892E: gtk_stack_switcher_dispose (gtkstackswitcher.c:527)

7 years agoassistant: Add a pages property
Matthias Clasen [Wed, 13 Feb 2019 23:27:25 +0000 (18:27 -0500)]
assistant: Add a pages property

This is mainly useful to make the page objects
accessible in the inspector.

7 years agoExempt "pages" properties from defaultvalue test
Matthias Clasen [Wed, 13 Feb 2019 23:14:48 +0000 (18:14 -0500)]
Exempt "pages" properties from defaultvalue test

Ironically, these properties are too good - they always
give you a proper value, which is unfortunately different
from the declared default value, which is NULL. So, don't
check these.

7 years agoinspector: Support list model properties
Matthias Clasen [Wed, 13 Feb 2019 20:08:17 +0000 (15:08 -0500)]
inspector: Support list model properties

This is just a very quick hack for a property editor
that allows to drill down into list models.

7 years agostack: Add a pages property
Matthias Clasen [Wed, 13 Feb 2019 19:14:54 +0000 (14:14 -0500)]
stack: Add a pages property

This makes the list model available in the inspector.

7 years agoinspector: Make object property inspection work again
Matthias Clasen [Wed, 13 Feb 2019 18:41:15 +0000 (13:41 -0500)]
inspector: Make object property inspection work again

This was lost when porting to GtkListView.

7 years agoinspector: Add an api to activate an object
Matthias Clasen [Wed, 13 Feb 2019 18:40:40 +0000 (13:40 -0500)]
inspector: Add an api to activate an object

This will be used to make object property inspection
work again.

This will be used to make object property inspection
work againn

7 years agoinspector: Fix selecting objects with a next tab
Matthias Clasen [Wed, 13 Feb 2019 18:04:00 +0000 (13:04 -0500)]
inspector: Fix selecting objects with a next tab

This was causing criticals.

7 years agoAdd a missing icon
Matthias Clasen [Wed, 13 Feb 2019 17:47:11 +0000 (12:47 -0500)]
Add a missing icon

The view-refresh-symbolic icon is used in the data list
of the inspector. So ship it in gtk. No need to have
it in the demos, then.

7 years agostack: Don't emit bad ::selection-changed signals
Matthias Clasen [Wed, 13 Feb 2019 14:01:07 +0000 (09:01 -0500)]
stack: Don't emit bad ::selection-changed signals

We have to be careful to not pass bad numbers to
this signal, which was happening in cases where
we have on old or new selected item.